{{define "Title"}}维修设置{{end}}
{{define "Content"}}

<script type=text/javascript src="/js/enterKey.js"></script>
<script type=text/javascript src="/js/tablestyle.js"></script>

<div class="container-fluid">
<form class="form-horizontal" action="/setrepair" method="POST">
  <fieldset>
    <legend><b>维修设置</b></legend>
    {{if .error}}<div class="alert alert-error"><b>错误: </b>{{.error | html}}</div>
    {{else }}
      {{if .flash}}<div class="alert alert-success"><b>提示: </b>{{.flash | html}}</div>{{end}}
    {{end}}
    <div class="control-group">
      <label class="control-label">名称&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="procname" name="procname" style="background-color: #FFFFD0" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">维修操作(英文)&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="acteng" name="acteng" style="background-color: #FFFFD0" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">维修操作(中文)&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="actchn" name="actchn" style="background-color: #FFFFD0" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">回流站点&nbsp;</label>
      <div class="control">
        <select id="cyclstat" name="cyclstat" style="background-color: #FFFFD0" onmousewheel="return false">
          <option value="">
          {{range .stations}}
            <option value="{{.Data | html}}">{{.Data | html}}
          {{end}}
        </select> <b style="color: red">*</b>
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">维修设置</button>
    </div>
  </fieldset>
</form>
</div>

{{if .repairs}}
<div class="content-box">
  <div class="content-box-content">
    <table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">      
      <tbody>
        {{range .repairs}}
        <tr>
          <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/repairset?q={{.Data | html}}" target="_blank">{{.Data | html}}</a></td>
        </tr>
        {{end}}
      </tbody>
      
    </table>
  </div>
</div>
{{end}}

{{end}}